
export default [

  {
    name: '404',
    path: '/404',
    meta: { title: '404', icon: '' },
    components: {
      //index为声明的router-view的name
      index: () =>
        import ('@views/error/404.vue')
    }
  },
  {
    name: 'sys/index',
    path: '/',
    meta: {title: '首页', icon: '', keepalive: true},
    components: {
      index: () =>
        import('@views/sys/index.vue')
    }
  },
  {
    name: 'sys/user',
    path: '/sys/user',
    meta: {title: '用户中心', icon: '', keepalive: true},
    components: {
      index: () =>
        import('@views/sys/user/index.vue')
    }
  },
  {
    name: 'sys/setup',
    path: '/sys/setup',
    meta: {title: '设置', icon: '', keepalive: true},
    components: {
      index: () =>
        import('@views/sys/setup/index.vue')
    }
  },
  {
    name: 'sys/about',
    path: '/sys/about',
    meta: {title: '关于', icon: '', keepalive: true},
    components: {
      index: () =>
        import('@views/sys/about/index.vue')
    }
  },
  {
    name: 'sys/tools',
    path: '/sys/tools',
    meta: {title: '工具', icon: '', keepalive: true},
    components: {
      index: () =>
        import('@views/sys/tools/index.vue')
    }
  },
]
